{% extends "bg/blank.html" %}
{% block title %}my-商店{% endblock %}
{% block css %}{% endblock %}
{% block content %}
    <div class="card shadow mb-4">
        <div class="card-header py-3">
            <h4 class="m-0 font-weight-bold text-primary">店铺详情</h4>
        </div>
        <div class="card-body">
            <form method="post" enctype="multipart/form-data">
                {% csrf_token %}
                <input type="hidden" name="store_id" value="{{ store.id}}">
                <table class="table store_table">
                    <tr>
                        <td rowspan="4">
                            <a href="#" class="thumbnail">
                                <img src="/static/img/{{ store.picture }}" alt="待上传" width="450">
                            </a>
                        </td>
                        <th class="t_label">店铺名称</th>
                        <td class="t_input"><input class="form-control" name="name" type="text" placeholder="店铺名称" value="{{ store.name }}"></td>
                        <td class="t_message">{{ ab }}</td>

                    </tr>
                    <tr>
                        <th class="t_label">店铺地址</th>
                        <td class="t_input" colspan="2">
                            <input class="form-control" name="address" type="text" placeholder="店铺地址" value="{{ store.address }}"></input>
                        </td>
                    </tr>
                    <tr>
                        <th colspan="3">店铺描述</th>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <textarea name="description" class="form-control">{{ store.description }}</textarea>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <input class="btn btn-primary" name="picture" type="file" value="图片上传">
                        </td>
                        <td colspan="3">
                            <input class="btn btn-primary" type="submit" value="发起修改">
                        </td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
{% endblock %}
{% block js %}{% endblock %}